-- GENERATED SPELL FOR [Fallen Hero] --


function spell0_10996(pUnit, Event) --@Dismounting Blast,n/a--
pUnit:FullCastSpellOnTarget(18396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10996', 298, 1)
end

function spell1_10996(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_10996', 8322, 1)
end

function spell2_10996(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10996', 5301, 1)
end

function spell3_10996(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10996', 2260, 1)
end

function Sorts_10996(pUnit, Event)
local choix_sorts_10996 = math.random(0, 3)
if choix_sorts_10996 == 0 then
pUnit:RegisterEvent('spell0_10996', 1, 1)
end
if choix_sorts_10996 == 1 then
pUnit:RegisterEvent('spell1_10996', 1, 1)
end
if choix_sorts_10996 == 2 then
pUnit:RegisterEvent('spell2_10996', 1, 1)
end
if choix_sorts_10996 == 3 then
pUnit:RegisterEvent('spell3_10996', 1, 1)
end
end

function mob10996_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10996', math.random(1500, 3000), 1)
end

function mob10996_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10996_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10996_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10996, 1, 'mob10996_Action')
RegisterUnitEvent(10996, 2, 'mob10996_Leave')
RegisterUnitEvent(10996, 3, 'mob10996_Kill')
RegisterUnitEvent(10996, 4, 'mob10996_Die')
